import entity.Pet;
import factory.PetDaoFactory;
import service.PetService;
import service.PetServiceImpl;

/**
 * @Description
 * @Author 李楚鹏
 * @Date 2024/12/11 15:21
 **/

public class Main {
    public static void main(String[] args) {
        PetDaoFactory.defaultBeanName="petDaoOracleImpl";
        PetService petService=new PetServiceImpl();
        Pet pet=new Pet();
        pet.setName("小马楼");
        petService.save(pet);
    }
}
